Exemplo n.º 1
0
        public void SoftDeleteManufacturerTest()
        {
            var foundManufacturers = ManufacturerService.Search(TestManufacturerName).ToList();

            Assert.AreEqual(1, foundManufacturers.Count);
            ManufacturerService.SoftDelete(foundManufacturers.First().ManufacturerId, TestUserPrincipal);

            var softDeletedManufacturer = ManufacturerService.Search(TestManufacturerName).ToList();

            Assert.AreEqual(1, softDeletedManufacturer.Count);
            Assert.IsTrue(softDeletedManufacturer.First().IsDeleted);
        }
Exemplo n.º 2
0
        public void SoftDeleteManufacturerThatDoesNotExistTest()
        {
            var guid = Guid.NewGuid();

            ManufacturerService.SoftDelete(guid, TestUserPrincipal);
        }