namespace VAL.Tests { using System; using System.Collections.Generic; using System.Data.Objects; using System.Linq; using System.Text; using VAL.Model; using VAL.Repository; using VAL.BusinessService; public class FakeFileRepository : FakeRepository<File>, IFileRepository { /// <summary> /// Ctor /// </summary> public FakeFileRepository() { var internetExplorer = new File { FileTypeID = 1, Name = "iexplore.exe", Description = "Internet Explorer", Path = @"C:\Program Files\Internet Explorer\", Id = 1, IsActive = true }; var permission = TestDataObjectCreator.GetPermission(); var group = TestDataObjectCreator.GetGroup(); group.GroupUsers.Add(TestDataObjectCreator.GetGroupUser()); permission.Group = group; internetExplorer.Permissions.Add(permission); this.Add(internetExplorer, false); } } }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)