public static SeriesServiceModel Create(string id) { var model = new SeriesServiceModel() { Id = id }; return(model); }
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); }
public async Task EditAsync(SeriesServiceModel model) { await this.adminEditService.EditAsync <Series, SeriesServiceModel>(model, model.Id); }
public async Task CreateNewAsync(SeriesServiceModel model) { await this.adminCreateService.CreateAsync <Series, SeriesServiceModel>(model); }