public async Task <GarmentCourierModel> GetTestData() { var data = GetNewData(); await Service.CreateAsync(data); return(data); }
public async void Should_Success_Create_Data() { var service = new GarmentCourierService(GetServiceProvider().Object, _dbContext(GetCurrentMethod())); var data = _dataUtil(service).GetNewData(); var Response = await service.CreateAsync(data); Assert.NotEqual(0, Response); }