public async void Should_return_package_name() { var query = new TVQueryHandler(billQueryHandler); bill.Package.Subscriptions.Add(new Subscription() { Name = "my telly package", Type = PackageType.tv.ToString() }); var result = await query.Execute(new BillQuery()); result.Package.ShouldEqual("my telly package"); }
public async void Should_return_package_cost() { var query = new TVQueryHandler(billQueryHandler); bill.Package.Subscriptions.Add(new Subscription() { Name = "my telly package", Type = PackageType.tv.ToString(), Cost = 20M }); bill.SkyStore.Total = 50.12M; var result = await query.Execute(new BillQuery()); result.Total.ShouldEqual(70.12M); }