public void Make_Valid() { //arange var entity = new StewardessDto { CrewId = 3, FirstName = Guid.NewGuid().ToString(), LastName = "Ivanov", Birthday = new DateTime(1987, 1, 24) }; //act service.Make(entity); var result = service.Get() .ToList() .SingleOrDefault(x => x.FirstName == entity.FirstName); //assert Assert.NotNull(result); Assert.AreEqual(result.FirstName, entity.FirstName); }
public ActionResult <IEnumerable <StewardessDto> > Get() { return(_stewardessesSrvice.Get().ToList()); }