コード例 #1
0
        public void NullOrEmptyInputTest()
        {
            List <ListingEntity> listingList = null;
            AvailableCarsPercentualDistributionReport expectedResult = null;

            AvailableCarsPercentualDistributionReport result = _listingReports.CalculateAvailableCarsPercentualDistributionReport(listingList);

            result.Should().BeEquivalentTo(expectedResult);
        }
コード例 #2
0
        public void StandardInputTest()
        {
            List <ListingEntity> listingList = GenerateInputStandardTest();
            AvailableCarsPercentualDistributionReport expectedResult = GenerateExpectedResultOnStandardTest();

            AvailableCarsPercentualDistributionReport result = _listingReports.CalculateAvailableCarsPercentualDistributionReport(listingList);

            result.Should().BeEquivalentTo(expectedResult);
        }