public void Deposit() { var depositDate = new DateTime(2020, 01, 08); calendarWrapper.GeteDate().Returns(depositDate); bankAccountController.Deposit(1000); bankAccount.Received().Deposit(Arg.Is <int>(x => x == 1000), Arg.Is <DateTime>(d => d == depositDate)); }
public void Deposit(int amount) { _bankAccount.Deposit(amount, _calendarWrapper.GeteDate()); }