public void SetUp()
 {
     testCustomers = new List<Customer> { new Customer { Id = 1, FirstName = "Name", LastName = "Name" } };
     testLicenses = new List<License> { new License { Id = 1, CustomerId = 1, Key = "key1" }, new License { Id = 2, CustomerId = 1, Key = "key2" } };
     reader = Substitute.For<IDataRepresentator>();
     reader.GetAllCustomers().Returns(testCustomers);
     reader.GetAllLicenses().Returns(testLicenses);
     dbWriter = Substitute.For<SimpleDataModificator>((TimeContext)null);
     xmlWriter = Substitute.For<XmlDataModificator>(null, null);
     sut = new LicenseManagerBaundary(reader, dbWriter, xmlWriter);
 }
 public LicenseManagerBaundary(IDataRepresentator reader, SimpleDataModificator dbWriter, XmlDataModificator xmlWriter)
 {
     this.reader = reader;
     this.dbWriter = dbWriter;
     this.xmlWriter = xmlWriter;
 }