public void SetUp()
 {
     _factory         = new InMemorySqlLiteContextFactory();
     _mockSignManager = new FakeSignInManager();
     _mockUserManager = new FakeUserManager();
     _uut             = new IdentityUserRepository(_mockUserManager, _mockSignManager);
 }
示例#2
0
 public void SetUp()
 {
     _factory = new InMemorySqlLiteContextFactory();
     //Store context to ensure it's possible to save changes for testing.
     _context = _factory.CreateContext();
     _uut     = new GenericRepository <Customer>(_context);
 }
        public void SetUp()
        {
            _factory = new InMemorySqlLiteContextFactory();
            var identityRepository = Substitute.For <IIdentityUserRepository>();

            _uut = new UnitOfWork.UnitOfWork(_factory.CreateContext(), identityRepository);
        }
示例#4
0
 public void SetUp()
 {
     _factory = new InMemorySqlLiteContextFactory <TContext>(options => Activator.CreateInstance(typeof(TContext), options) as TContext);
     _context = _factory.CreateContext(true);
     _publish = Substitute.For <IPublishEndpoint>();
     _authorizationService = Substitute.For <IAuthorizationService>();
     _eventService         = EventServiceFactory.CreateEventService(_context, _publish);
 }
示例#5
0
 public void SetUp()
 {
     _factory         = new InMemorySqlLiteContextFactory <TContext>(options => Activator.CreateInstance(typeof(TContext), options) as TContext);
     _harness         = new InMemoryTestHarness();
     _consumerHarness = _harness.Consumer(() => _consumer);
 }