public void ShouldCreatedAnAccommmodationSupplier() { var id = Guid.NewGuid(); const string name = "test"; const string email = "*****@*****.**"; var @event = new AccommodationSupplierCreated { AccommodationSupplierId = id, Name = name, Email = email }; var handler = new Subscribers.AccommodationSupplierCreated(Repository); handler.Handle(@event); Repository.AssertWasCalled(x => x.Save(Arg<AccommodationSupplier>.Is.Anything)); }
public void ShouldCreatedAnAccommmodationSupplier() { var id = Guid.NewGuid(); const string name = "test"; const string email = "*****@*****.**"; var @event = new AccommodationSupplierCreated { AccommodationSupplierId = id, Name = name, Email = email }; var handler = new Subscribers.AccommodationSupplierCreated(Repository); handler.Handle(@event); Repository.AssertWasCalled(x => x.Save(Arg <AccommodationSupplier> .Is.Anything)); }