示例#1
0
        public async Task FindAllByOwner__with_ownerName_not_null__return_List_if_ConfirmationReport(string ownerName, ReportStatus?status)
        {
            // Arrange
            var expected = new List <ConfirmationReportViewModel>()
            {
            };

            query.FindAllByOwner(ownerName, status).Returns(expected);

            //Act
            var worker = new ConfirmationReportWorker(command, query);
            var actual = await worker.FindAllByOwner(ownerName, status);

            // Assert
            Assert.That(actual, Is.SameAs(expected));
        }
示例#2
0
 public async Task FindAllByOwner__with_ownerName_null_or_empty__Throw_ArgumentNullException(string ownerName, ReportStatus?status)
 {
     //Act
     var worker = new ConfirmationReportWorker(command, query);
     await worker.FindAllByOwner(ownerName, status);
 }