Beispiel #1
0
        public async Task Shoud_Error_Delete_Data()
        {
            var dbContext = GetDbContext(GetCurrentMethod());
            var facade    = new GarmentPOMasterDistributionFacade(GetMockServiceProvider().Object, dbContext);

            Exception e = await Assert.ThrowsAsync <Exception>(async() => await facade.Delete(0));

            Assert.NotNull(e.Message);
        }
Beispiel #2
0
        public async Task Shoud_Success_Delete_Data()
        {
            var dbContext = GetDbContext(GetCurrentMethod());
            var facade    = new GarmentPOMasterDistributionFacade(GetMockServiceProvider().Object, dbContext);
            var data      = await dataUtil(facade, dbContext).GetTestData();

            var Response = await facade.Delete(data.Id);

            Assert.NotEqual(0, Response);
        }