Пример #1
0
        public void InvoicingForPeriod_ReturnsDataForGivenPeriod()
        {
            // Arrange
            var periodType = PeriodType.Month;

            // Act
            var data = _statisticsClient.InvoicingForPeriod(periodType).AssertResult();

            // Assert
            Assert.Greater(data.IssuedInvoices.Count, 0);
            Assert.IsNotNull(data.IssuedInvoices.First().Period);
            Assert.IsNotEmpty(data.IssuedInvoices.First().Period);
            Assert.Greater(data.ReceivedInvoices.Count, 0);
            Assert.IsNotNull(data.ReceivedInvoices.First().Period);
            Assert.IsNotEmpty(data.ReceivedInvoices.First().Period);
        }