Exemplo n.º 1
0
 public void ReInitializeTest()
 {
     _clients               = ClientsInitializer.GetAllClients();
     _sessionFactory        = NHibernateSessionFactory.CreateSessionFactory(DBTypes.SQLite);
     _unitOfWork            = new Mock <IUnitOfWork>(MockBehavior.Default).Object;
     _clientsMockRepository = SetUpClientsRepository();
     _clientsService        = new ClientsService(_clientsMockRepository);
 }
Exemplo n.º 2
0
        public void GetAllClientsTestForNull()
        {
            _clients.ToList().Clear();
            var clients = _clientsService.GetAllAsync().Result;

            Assert.IsNotNull(clients);
            Assert.Null(clients);
            _clients = ClientsInitializer.GetAllClients();
        }
Exemplo n.º 3
0
 public void Setup()
 {
     _clients = ClientsInitializer.GetAllClients();
 }