public void Arrange() { _repo = new ClaimContentRepository(); _content = new ClaimContent(7, "car", "fender bender", new DateTime(1997 / 5 / 30), new DateTime(1997 / 6 / 10), 560.56, true); _repo.AddContentToQueue(_content); }
public void AddToQueue_ShouldNotGetNull() { ClaimContent content = new ClaimContent(); content.ClaimId = 7; ClaimContentRepository repository = new ClaimContentRepository(); repository.AddContentToQueue(content); ClaimContent contentFromDirectory = repository.GetContentByNumber(7); Assert.IsNotNull(contentFromDirectory); }
public void Arrange() { _claimRepo = new ClaimContentRepository(); _content = _claimRepo.GetClaimContentQueue(); ClaimContent claim = new ClaimContent(ClaimType.Car, 3, "Car Wreck on I70W", 1500m, DateTime.Parse("2019, 02, 23"), DateTime.Parse("2019, 02, 24")); ClaimContent claimTwo = new ClaimContent(ClaimType.Home, 4, "Home Invasion", 700m, DateTime.Parse("2019, 03, 11"), DateTime.Parse("2019, 03, 12")); ClaimContent claimThree = new ClaimContent(ClaimType.Theft, 5, "Tire Thief", 100m, DateTime.Parse("2019, 05, 10"), DateTime.Parse("2019, 05, 25")); _claimRepo.AddContentToQueue(claim); _claimRepo.AddContentToQueue(claimTwo); _claimRepo.AddContentToQueue(claimThree); }