public void ThatShapeWithUnitGroupsCanBeDeletedLeavingUnitGroups() { var shape = ShapeServices.WithDto(ShapeTestFixtures.GetValidDtoWithUnitGroups()).Get(); ShapeServices.Delete(shape); Assert.IsNotNull(UnitGroupServices.UnitGroups.SingleOrDefault(x => x.Name == ShapeTestFixtures.GetValidDtoWithUnitGroups().UnitGroups.First().Name)); }
public void ThatShapeCanBeDeleted() { var shape = ShapeServices.WithDto(ShapeTestFixtures.GetIvFluidDto()).Get(); ShapeServices.Delete(shape); Assert.IsNull(ShapeServices.Shapes.SingleOrDefault(x => x.Name == ShapeTestFixtures.GetIvFluidDto().Name)); }
public void ThatShapeWithAfterDeleteLeavesPackage() { var shape = ShapeServices.WithDto(ShapeTestFixtures.GetValidDtoWithPackages()).Get(); ShapeServices.Delete(shape); Assert.IsNotNull(PackageServices.Packages.SingleOrDefault(x => x.Name == ShapeTestFixtures.GetValidDtoWithPackages().Packages.First().Name)); }