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