Example #1
0
        public static ModelTypeServiceModel Create(string id)
        {
            var model = new ModelTypeServiceModel()
            {
                Id = id
            };

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