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 <StewardessDto> Post([FromBody] StewardessDto entity) { return(_stewardessesSrvice.Make(entity)); }