public async Task ThenItShouldReturnAValidResponseWithThePeriod() { // Act var actual = await _handler.Handle(_request); // Assert Assert.IsNotNull(actual); Assert.IsTrue(actual.IsValid); Assert.IsNotNull(actual.Result); Assert.AreEqual("1617-R02", actual.Result.Id); Assert.AreEqual(9, actual.Result.CalendarMonth); Assert.AreEqual(2016, actual.Result.CalendarYear); }
public async Task ThenItShouldReturnAValidResponseWithThePeriod() { // Act var actual = await _handler.Handle(_request); // Assert Assert.IsNotNull(actual); Assert.IsTrue(actual.IsValid); Assert.IsNotNull(actual.Result); Assert.AreEqual("1617-R02", actual.Result.Id); Assert.AreEqual(9, actual.Result.CalendarMonth); Assert.AreEqual(2016, actual.Result.CalendarYear); Assert.AreEqual(2, actual.Result.Period); Assert.AreEqual(1617, actual.Result.AcademicYear); Assert.AreEqual(_expectedDate, actual.Result.CommitmentDataValidAt); Assert.AreEqual(_expectedDate, actual.Result.AccountDataValidAt); Assert.AreEqual(_expectedDate, actual.Result.CompletionDateTime); }