public void AddCustomer_ShouldGetNotNull() { Greetings newGreetings = new Greetings("Tom", "Smith", CustomerType.Current); GreetingsRepo repository = new GreetingsRepo(); repository.AddCustomerGreeting(newGreetings); Greetings fromDirectory = repository.GetCustomerByFullName("Smith", "Tom"); Assert.IsNotNull(fromDirectory); }
public void Arrange() { _greeting = new Greetings("John", "Smith", CustomerType.Past); _greetingsRepo = new GreetingsRepo(); _greetingsRepo.AddCustomerGreeting(_greeting); }