public void ReInitializeTest() { _clients = ClientsInitializer.GetAllClients(); _sessionFactory = NHibernateSessionFactory.CreateSessionFactory(DBTypes.SQLite); _unitOfWork = new Mock <IUnitOfWork>(MockBehavior.Default).Object; _clientsMockRepository = SetUpClientsRepository(); _clientsService = new ClientsService(_clientsMockRepository); }
public void GetAllClientsTestForNull() { _clients.ToList().Clear(); var clients = _clientsService.GetAllAsync().Result; Assert.IsNotNull(clients); Assert.Null(clients); _clients = ClientsInitializer.GetAllClients(); }
public void Setup() { _clients = ClientsInitializer.GetAllClients(); }