public void save_animal() { var animal = new Animal { Name = "Gary", CommonName = CommonName.Goat }; _session.Setup(m => m.Execute(It.IsAny<string>(), It.IsAny<object>())).Verifiable(); var service = new AnimalService(_database); service.Save(animal); _session.Verify(m => m.Execute(It.IsAny<string>(), It.IsAny<object>())); }
public SaveAnimal(Animal animal) { _animal = animal; }