public static TransmissionServiceModel Create(string id) { var model = new TransmissionServiceModel() { Id = id }; return(model); }
public async void WithModel_ShouldCreateNewTransmission() { var dbContext = this.GetDbContext(); var service = this.GetService(dbContext); var model = new TransmissionServiceModel(); await service.CreateNewAsync(model); Assert.Single(dbContext.Transmissions); }
public async Task EditAsync(TransmissionServiceModel model) { await this.adminEditService.EditAsync <Transmission, TransmissionServiceModel>(model, model.Id); }
public async Task CreateNewAsync(TransmissionServiceModel model) { await this.adminCreateService.CreateAsync <Transmission, TransmissionServiceModel>(model); }