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