public async Task SaveDraft__with_Report_null__Throw_ArgumentNullException() { // Arrange ConfirmationReportViewModel model = null; command.SaveDraft(model).Returns(model); //Act var worker = new ConfirmationReportWorker(command, query); await worker.SaveDraft(model); }
public async Task SaveDraft__with_Report_not_null__call_worker() { // Arrange ConfirmationReportViewModel model = new ConfirmationReportViewModel { }; command.SaveDraft(model).Returns(model); // Act var worker = new ConfirmationReportWorker(command, query); var actual = await worker.SaveDraft(model); // Assert Assert.That(actual, Is.SameAs(model)); }