public static FuelTypeServiceModel Create(string id)
        {
            var model = new FuelTypeServiceModel()
            {
                Id = id
            };

            return(model);
        }
예제 #2
0
        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);
        }
예제 #3
0
 public async Task EditAsync(FuelTypeServiceModel model)
 {
     await this.adminEditService.EditAsync <FuelType, FuelTypeServiceModel>(model, model.Id);
 }
예제 #4
0
 public async Task CreateNewAsync(FuelTypeServiceModel model)
 {
     await this.adminCreateService.CreateAsync <FuelType, FuelTypeServiceModel>(model);
 }