public void Execute_MeetingRoomIsSavedToDatabase() { var command = new CreateMeetingRoomCommand(_database.Object, _factory); command.Execute(_model); _database.Verify(x => x.Save(), Times.Once); }
public void Execute_MeetingRoomIsAddedToDatabase() { var command = new CreateMeetingRoomCommand(_database.Object, _factory); command.Execute(_model); _meetingRooms.Verify(x => x.Add(It.IsAny <MeetingRoom>()), Times.Once); }