public void ShouldGetClientsInBlackZone()
        {
            //Arrange
            var clientsWhichHaveLessThanZeroBalance = clientTableRepository.GetAllInBlackZone();
            IEnumerable <ClientEntity> clientsInBlackZone;

            //Act
            clientsInBlackZone = clientsService.GetAllInBlackZone();

            //Assert
            Assert.AreEqual(clientsWhichHaveLessThanZeroBalance, clientsInBlackZone);
        }
 public void Initialize()
 {
     clientTableRepository = Substitute.For <IClientTableRepository>();
     sharesTableRepository = Substitute.For <ISharesTableRepository>();
     clientTableRepository.GetById(1).Returns(new ClientEntity()
     {
         Id      = 1,
         Balance = 0M,
         Name    = "Vlad Blood"
     });
     clientTableRepository.GetAllInOrangeZone()
     .Returns(new List <ClientEntity>());
     clientTableRepository.GetAllInBlackZone()
     .Returns(new List <ClientEntity>());
     clientsService = new ClientsService(clientTableRepository, sharesTableRepository);
 }
 public ICollection <ClientEntity> GetAllInBlackZone()
 {
     return(clientTableRepository.GetAllInBlackZone());
 }