Ejemplo n.º 1
0
        public async Task <GarmentAdditionalChargesModel> GetTestData()
        {
            var data = GetNewData();

            await Service.CreateAsync(data);

            return(data);
        }
        public async void Should_Success_Create_Data()
        {
            var service = new GarmentAdditionalChargesService(GetServiceProvider().Object, _dbContext(GetCurrentMethod()));
            var data    = _dataUtil(service).GetNewData();

            var Response = await service.CreateAsync(data);

            Assert.NotEqual(0, Response);
        }