public void Get_Success_ReturnCategory() { // Arrange var repository = new CustomerLevelRepository(); var input = repository.Create(new CustomerLevel { Name = "CustomerLevel-" + Helper.RandomString(6), Description = "CustomerLevel-" + Helper.RandomString(6), }); // Act var result = repository.Get(input.Id); // Assert Assert.IsInstanceOf <CustomerLevel>(result); }
public void Delete_Success_ReturnNull() { // Arrange var repository = new CustomerLevelRepository(); var input = repository.Create(new CustomerLevel { Name = "category-" + Helper.RandomString(6), Description = "category-" + Helper.RandomString(6), }); // Act repository.Delete(input.Id); var result = repository.Get(input.Id); // Assert Assert.IsNull(result); }