public async void Check10CreateWithListDtoBad() { using (var db = new SampleWebAppDb()) { //SETUP var service = new CreateServiceAsync <Post, SimplePostDtoAsync>(db); //ATTEMPT var dto = new SimplePostDtoAsync(); var status = await service.CreateAsync(dto); dto.LogSpecificName("End"); //VERIFY status.IsValid.ShouldEqual(false); status.Errors.Count.ShouldEqual(1); status.Errors[0].ErrorMessage.ShouldEqual("Create of a new Post is not supported in this mode."); } }
public async void Check10CreateWithListDtoBad() { using (var db = new SampleWebAppDb()) { //SETUP var service = new CreateServiceAsync<Post, SimplePostDtoAsync>(db); //ATTEMPT var dto = new SimplePostDtoAsync(); var status = await service.CreateAsync(dto); dto.LogSpecificName("End"); //VERIFY status.IsValid.ShouldEqual(false); status.Errors.Count.ShouldEqual(1); status.Errors[0].ErrorMessage.ShouldEqual("Create of a new Post is not supported in this mode."); } }