Exemplo n.º 1
0
        public static TransmissionServiceModel Create(string id)
        {
            var model = new TransmissionServiceModel()
            {
                Id = id
            };

            return(model);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 public async Task EditAsync(TransmissionServiceModel model)
 {
     await this.adminEditService.EditAsync <Transmission, TransmissionServiceModel>(model, model.Id);
 }
Exemplo n.º 4
0
 public async Task CreateNewAsync(TransmissionServiceModel model)
 {
     await this.adminCreateService.CreateAsync <Transmission, TransmissionServiceModel>(model);
 }