public static OptionServiceModel Create(string id) { var model = new OptionServiceModel() { Id = id }; return(model); }
public async void WithModel_ShouldCreateNewOption() { var dbContext = this.GetDbContext(); var service = this.GetService(dbContext); var model = new OptionServiceModel(); await service.CreateNewAsync(model); Assert.Single(dbContext.Options); }
public async Task EditAsync(OptionServiceModel model) { await this.adminEditService.EditAsync <Option, OptionServiceModel>(model, model.Id); }
public async Task CreateNewAsync(OptionServiceModel model) { await this.adminCreateService.CreateAsync <Option, OptionServiceModel>(model); }