Esempio n. 1
0
        public static EngineServiceModel Create(string id)
        {
            var model = new EngineServiceModel()
            {
                Id = id
            };

            return(model);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public async Task EditAsync(EngineServiceModel model)
 {
     await this.adminEditService.EditAsync <Engine, EngineServiceModel>(model, model.Id);
 }
Esempio n. 4
0
 public async Task CreateNewAsync(EngineServiceModel model)
 {
     await this.adminCreateService.CreateAsync <Engine, EngineServiceModel>(model);
 }