public async Task FindByNumber__with_reportNumber_greater_than_0__call_service() { // Arrange int reportNumber = 3; var expected = new ConfirmationReportViewModel { }; query.FindByNumber(reportNumber).Returns(expected); //Act var worker = new ConfirmationReportWorker(command, query); var actual = await worker.FindByNumber(reportNumber); // Assert Assert.That(actual, Is.SameAs(expected)); }
public async Task FindByNumber__with_reportNumber_lesser_or_equal_0__Throw_ArgumentException(int reportNumber) { //Act var worker = new ConfirmationReportWorker(command, query); await worker.FindByNumber(reportNumber); }