Ejemplo n.º 1
0
        public async Task FindById__with_reportNumber_greater_than_0__call_service()
        {
            // Arrange
            int reportNumber = 3;
            var expected     = new ConfirmationReportViewModel {
            };

            query.FindById(reportNumber).Returns(expected);

            //Act
            var worker = new ConfirmationReportWorker(command, query);
            var actual = await worker.FindById(reportNumber);

            // Assert
            Assert.That(actual, Is.SameAs(expected));
        }
Ejemplo n.º 2
0
 public async Task FindById__with_reportNumber_lesser_or_equal_0__Throw_ArgumentException(int reportNumber)
 {
     //Act
     var worker = new ConfirmationReportWorker(command, query);
     await worker.FindById(reportNumber);
 }