public void Should_Delete_WebFarm() { // Arrange var settings = CakeHelper.GetWebFarmSettings(); CakeHelper.CreateWebFarm(settings); // Act CakeHelper.CreateWebFarmManager().Delete(settings.Name); // Assert Assert.Null(CakeHelper.GetWebFarm(settings.Name)); }
public void Should_Create_WebFarm() { // Arrange var settings = CakeHelper.GetWebFarmSettings(); CakeHelper.DeleteWebFarm(settings.Name); // Act WebFarmManager manager = CakeHelper.CreateWebFarmManager(); manager.Create(settings); // Assert CakeHelper.GetWebFarm(settings.Name).ShouldNotBeNull(); }