public void ValueForAliasShouldInsert() { aliasRepo.Insert(ALIAS); var response = db.Alias.Find(1); Assert.AreEqual(response.AliasName, ALIAS.AliasName); }
public void DeleteingDependencyAndAgentObject() { Response aResponse = new Response(); repo.Insert(AGENT1); Alias alias = AliasTesting.ALIAS; alias.Agent = AGENT1; aliasRepo.Insert(alias); AgencyAgent agencyAgent = AgencyAgentTesting.AGENCYAGENT1; agencyAgent.Agent = AGENT1; agencyAgentRepo.Insert(agencyAgent); aResponse = repo.Delete(1); Assert.IsTrue(aResponse.Success); }