public virtual void CreateAndDeleteDomain() { Assert.IsNotNull(peter_domain, "Newly created peter_domain object shouldn't be null."); Assert.AreEqual(peter_domain.Name, _peterDomainName); Assert.Greater(peter_domain.Id, -1, "Domain id must be"); Assert.IsTrue(server.GetWebDomain(peter_domain.Id, TestContext.ServerFactory) != null, "Server web domains list should contains created one."); server.DeleteWebDomain(peter_domain, TestContext.ServerFactory); server.GetWebDomain(peter_domain.Id, TestContext.ServerFactory); }