Esempio n. 1
0
        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 <ConfirmationReportViewModel> SaveDraft(ConfirmationReportViewModel report)
 {
     Contract.Requires <ArgumentNullException>(report != null, "report");
     return(await command.SaveDraft(report));
 }