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