public void Check12CreateResetDtoOk() { using (var db = new SampleWebAppDb()) { //SETUP var service = new CreateService(db); var dto = new DetailPostDto(); //ATTEMPT service.ResetDto(dto); //VERIFY dto.Bloggers.ShouldNotEqualNull(); dto.Bloggers.KeyValueList.Count.ShouldNotEqual(0); } }
public void Check13CreateServiceResetWorksOk() { using (var db = new SampleWebAppDb()) { //SETUP var service = new CreateService <Post, DetailPostDto>(db); //ATTEMPT var dto = new DetailPostDto(); service.ResetDto(dto); //VERIFY dto.Bloggers.KeyValueList.Count.ShouldEqual(db.Blogs.Count() + 1); dto.UserChosenTags.AllPossibleOptions.Count.ShouldEqual(db.Tags.Count()); } }
public void Check13CreateServiceResetWorksOk() { using (var db = new SampleWebAppDb()) { //SETUP var service = new CreateService<Post, DetailPostDto>(db); //ATTEMPT var dto = new DetailPostDto(); service.ResetDto(dto); //VERIFY dto.Bloggers.KeyValueList.Count.ShouldEqual(db.Blogs.Count() + 1); dto.UserChosenTags.AllPossibleOptions.Count.ShouldEqual(db.Tags.Count()); } }
public void Check12CreateResetDtoOk() { using (var db = new SampleWebAppDb()) { //SETUP var service = new CreateService(db); var dto = new DetailPostDto(); //ATTEMPT service.ResetDto(dto); //VERIFY dto.Bloggers.ShouldNotEqualNull(); dto.Bloggers.KeyValueList.Count.ShouldNotEqual(0); } }