public void CanCloseAccountAndReturnMoney() { var dueDate = new DateTimeOffset(new DateTime(2018, 1, 1)); var account = new PolicyAccount("C", "C", "E", "E"); account.ExpectedPayment(10M, dueDate); account.InPayment(10M, dueDate); account.Close(new DateTime(2018, 6, 1), 5M); Equal(PolicyAccountStatus.Terminated, account.Status); }