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