Exemple #1
0
        public static async Task GetFundingSource_ReturnsNull(
            CallOffId callOffId,
            FundingSourceService service)
        {
            var result = await service.GetFundingSource(callOffId);

            result.Should().BeNull();
        }
Exemple #2
0
        public static async Task GetFundingSource_ReturnsFundingSource(
            [Frozen] ApplicationDbContext context,
            Order order,
            FundingSourceService service)
        {
            context.Order.Add(order);
            await context.SaveChangesAsync();

            var expectedResult = order.FundingSourceOnlyGms;

            var result = await service.GetFundingSource(order.CallOffId);

            Assert.NotNull(result);
            result.Value.Should().Be(expectedResult !.Value);
        }