public async Task Save__with_Report_null__Throw_ArgumentNullException() { // Arrange ConfirmationReportViewModel model = null; command.Save(model).Returns(model); // Act var worker = new ConfirmationReportWorker(command, query); await worker.Save(model); }
public async Task <ConfirmationReportViewModel> Save(ConfirmationReportViewModel report) { Contract.Requires <ArgumentNullException>(report != null, "report"); return(await command.Save(report)); }