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

            return(model);
        }
예제 #2
0
        public async void WithModel_ShouldCreateNewSeries()
        {
            var dbContext = this.GetDbContext();
            var service   = this.GetService(dbContext);
            var model     = new SeriesServiceModel();

            await service.CreateNewAsync(model);

            Assert.Single(dbContext.Series);
        }
예제 #3
0
 public async Task EditAsync(SeriesServiceModel model)
 {
     await this.adminEditService.EditAsync <Series, SeriesServiceModel>(model, model.Id);
 }
예제 #4
0
 public async Task CreateNewAsync(SeriesServiceModel model)
 {
     await this.adminCreateService.CreateAsync <Series, SeriesServiceModel>(model);
 }