public void ShouldNotValidateNotExistsShareToClientInfo() { //Arrange TradeValidator tradeValidator = new TradeValidator(clientsRepository, shareRepository, clientsSharesRepository); ClientsSharesInfo clientShareInfo = new ClientsSharesInfo() { ClientID = 11, ShareID = 41, Amount = 20 }; //Act var isValid = tradeValidator.ValidateShareToClient(clientShareInfo, logger); //Assert Assert.AreEqual(false, isValid); clientsRepository.Received(1).LoadClientByID(clientShareInfo.ClientID); shareRepository.DidNotReceive().LoadShareByID(clientShareInfo.ShareID); clientsSharesRepository.DidNotReceive().LoadClientsSharesByID(clientShareInfo); }