using Centron.BusinessLogic; using Centron.BusinessLogic.WebServices.Sales.CustomerAssets.TimerBilling; using Centron.Tests.EndToEnd.Infrastructure; using System.Collections.Generic; using Xunit.Abstractions; namespace Centron.Tests.EndToEnd.TicketTests.Ticket104305 { public class Ticket104305Test : EndToEndTest { public Ticket104305Test(ITestOutputHelper testOutputHelper) : base(testOutputHelper) { } public override void Execute() { this.LoadContracts("ContractsFromCustomer10003", new List { 10003 }, null); this.LoadContracts("ContractsFromCustomer10003IncludeContract4", new List { 10003 }, new List { 4 }); this.LoadContracts("NoCustomersIncludeContract4And10", null, new List { 4, 10 }); this.LoadContracts("BothNULL", null, null); this.LoadContracts("BothEmpty", new List(), new List()); } private void LoadContracts(string name, List customerI3Ds, List alwaysIncludeContractI3Ds) { using (var session = new BLSession()) { var contracts = session.GetBL().GetContracts(customerI3Ds, alwaysIncludeContractI3Ds); this.Verifier.Verify(name, contracts); } } } }