public UserServiceTests(AutoMapperFixture mapperFixture) { _mockStore = Mock.Create <IUserStore <ApplicationUser> >(); _mockStore.As <IUserPasswordStore <ApplicationUser> >(); _mockStore.As <IQueryableUserStore <ApplicationUser> >(); _mockStore.As <IUserRoleStore <ApplicationUser> >(); _mockStore.As <IUserClaimStore <ApplicationUser> >(); _applicationUserManagerMock = Mock.Create <ApplicationUserManager>(); _mockRoleService = Mock.Create <IRoleService>(); _mockPhoneRepository = Mock.Create <IUserPhoneRepository>(); _mapperFixture = mapperFixture; // Cannot moq the interface directly, consider creating a facade around the manager class _userManager = new ApplicationUserManager(_mockStore.Object); _userService = new UserService(_userManager, _mapperFixture.MapperInstance, _mockRoleService.Object, _mockPhoneRepository.Object); }
public AutoMapperValidationTests(AutoMapperFixture mappingFixture) { _mappingFixture = mappingFixture; }
public ProductRepositoryTest(ContextFixture contextFixture, AutoMapperFixture autoMapperFixture) : base(contextFixture, autoMapperFixture) { }
public BaseRepositoryTest(ContextFixture contextFixture, AutoMapperFixture autoMapperFixture) { ContextFixture = contextFixture; MapperFixture = autoMapperFixture; }
public AuditServiceTests(AutoMapperFixture mapperFixture) { _mockAuditRepository = Mock.Create <IActivityAuditRepository>(); _auditService = new AuditService(_mockAuditRepository.Object, mapperFixture.MapperInstance); }
public UserProfileTests(AutoMapperFixture mappingFixture) { _mappingFixture = mappingFixture; }
public ActivityAuditProfileTests(AutoMapperFixture mappingFixture) { _mappingFixture = mappingFixture; }
public ProgramsControllerTest(AutoMapperFixture fixture) : base(fixture) { SetupMocks(); }
public AuthorProfileTest(AuthorFixtures authorFixtures, AutoMapperFixture autoMapperFixture) { _authorFixtures = authorFixtures; _mapper = autoMapperFixture; }
public BookProfileTest(BookFixtures bookFixtures, AutoMapperFixture autoMapperFixture) { _bookFixtures = bookFixtures; _mapper = autoMapperFixture; }
public CategoryControllerTests(AutoMapperFixture fixture) : base(fixture) { }
public PublisherProfileTest(PublisherFixtures publisherFixtures, AutoMapperFixture autoMapperFixture) { _publisherFixtures = publisherFixtures; _mapper = autoMapperFixture; }
public PerformersControllerTest(AutoMapperFixture fixture) : base(fixture) { SetupMocks(); }
public ProductControllerTests(AutoMapperFixture fixture) : base(fixture) { }
public ClaimProfileTests(AutoMapperFixture mappingFixture) { _mappingFixture = mappingFixture; }