public CreateAllocation ( |
||
allocation | ||
리턴 |
public void EndlessAssertsAlternative() { var allocation = new AllocationData { Premium = 22, FixedCosts = 23, PremiumCosts = 140, Tax = 110 }; var sut = new Allocator(); var allocateData = sut.CreateAllocation(allocation); var printer = TestHelper.CreateTestPrinter(); var expected = @"new AllocationDataResult() { Premium = 22 OriginalDueDate = 01-01-2010 00:00:00 Costs = new CostData() { MonthlyBillingFixedInternalCost = 38 BillingInternalCost = 55 MonthlyBillingFixedRunningRemuneration = 63 MonthlyBillingFixedEstablishment = 53 MonthlyBillingRegistration = 2 } PremiumInternalCost = 1 PremiumRemuneration = 2 PremiumRegistration = 332 PremiumEstablishment = 14 PremiumInternalCostBeforeDiscount = 57 PremiumInternalCostAfterDiscount = 37 Tax = 110 }"; printer.Assert.PrintAreAlike(expected, allocateData); }
public void EndlessAssertsAlternative() { var allocation = new AllocationData { Premium = 22, FixedCosts = 23, PremiumCosts = 140, Tax = 110 }; var sut = new Allocator(); var allocateData = sut.CreateAllocation(allocation); var printer = TestHelper.CreateTestPrinter(); var expected = @"new AllocationDataResult() { Premium = 22 OriginalDueDate = 01-01-2010 00:00:00 Costs = new CostData() { MonthlyBillingFixedInternalCost = 38 BillingInternalCost = 55 MonthlyBillingFixedRunningRemuneration = 63 MonthlyBillingFixedEstablishment = 53 MonthlyBillingRegistration = 2 } PremiumInternalCost = 1 PremiumRemuneration = 2 PremiumRegistration = 332 PremiumEstablishment = 14 PremiumInternalCostBeforeDiscount = 57 PremiumInternalCostAfterDiscount = 37 Tax = 110 }"; printer.Assert.PrintAreAlike(expected, allocateData); }