Ejemplo n.º 1
0
        public void CreateNewManufacturerWithUpsertTest()
        {
            var newManufacturer = new Manufacturer {
                ManufacturerName = "New Upsert Test Manufacturer"
            };

            ManufacturerService.Upsert(newManufacturer, TestUserPrincipal);
            var foundManufacturers = ManufacturerService.Search("New Upsert Test Manufacturer").ToList();

            Assert.AreEqual(1, foundManufacturers.Count);
            Assert.AreEqual(foundManufacturers.First().ManufacturerName, newManufacturer.ManufacturerName);

            ManufacturerService.DeleteByGuid(foundManufacturers.First().ManufacturerId);
        }
Ejemplo n.º 2
0
 public void DeleteTestManufacturer(Manufacturer manufacturer)
 {
     ManufacturerService.DeleteByGuid(manufacturer.ManufacturerId);
 }