public static void ClassInit(TestContext context)
 {
     IRepository<TestEntity> mockedRepositoryObject = new Mock<IRepository<TestEntity>>().Object;
     var data = new Mock<IDateFirstData>();
     data.Setup(x => x.GetRepository<TestEntity>())
         .Returns(mockedRepositoryObject);
     mockedDataObject = data.Object;
     mockedData = data;
 }
 public PostsController(IDateFirstData data)
 {
     this.data = data;
 }
Exemple #3
0
 public HomeController(IDateFirstData data)
 {
     this.data = data;
 }
 public AccountController(IDateFirstData data)
 {
     this.data = data;
 }
 public FlirtsController(IDateFirstData data, IIdentityProvider identityProvider)
 {
     this.data = data;
     this.principal = identityProvider.GetIdentity();
 }
 public FileUploadController(IDateFirstData data)
 {
     this.data = data;
 }
 public UserProfilesService(IDateFirstData data)
 {
     this.data = data;
 }
 public UploadProfilePictureController(IDateFirstData data)
 {
     this.data = data;
 }