Exemple #1
0
        public async void Should_Success_Get_Data_By_Id()
        {
            var service = new GarmentInsuranceService(GetServiceProvider().Object, _dbContext(GetCurrentMethod()));
            var data    = await _dataUtil(service).GetTestData();

            var Response = await service.ReadByIdAsync(data.Id);

            Assert.NotNull(Response);
        }
Exemple #2
0
        public async void Should_Success_Update_Data()
        {
            var service = new GarmentInsuranceService(GetServiceProvider().Object, _dbContext(GetCurrentMethod()));
            var data    = await _dataUtil(service).GetTestData();

            var newData = await service.ReadByIdAsync(data.Id);

            var Response = await service.UpdateAsync(newData.Id, newData);

            Assert.NotEqual(0, Response);
        }