public void GetOrganisation_CheckId() { var service = new TimeKeeperService(repo, mapper); var organisation = service.GetOrganisation(1); Assert.AreEqual(organisation.Id, 1); }
public void GetOrganisations_test() { var service = new TimeKeeperService(repo, mapper); var getOrg = service.GetOrganisations("70658403-ade4-47cf-82a6-034e176290f0").ToList(); var theOrg = getOrg.Where(x => x.Name == "Electronics Store").FirstOrDefault(); Assert.AreEqual("Electronics Store", theOrg.Name); }