public void TestAddType() { OptionService service = GetService(); var account1 = service.AddAccount("account1", "*****@*****.**"); var type1 = service.AddType(account1.Id, "type", ".json", "Validator", ""); var env2 = service.GetTypes(account1.Id).FirstOrDefault(c => c.Id == type1.Id); Assert.AreEqual(env2, type1); service.DeleteType(type1); var srv = service.GetTypes(account1.Id).FirstOrDefault(c => c.Id == type1.Id); Assert.AreEqual(srv, null); }