public void Should_fetch_all_available_rooms() { new ChatRoomBuilder().With(cr => cr.Name, "Room1").BuildAndSave(); new ChatRoomBuilder().With(cr => cr.Name, "Room2").BuildAndSave(); var cmd = new GetChatRooms(); Assert.That(DomainRegistry.Repository.Find(cmd), Has.Exactly(2).Items); }
public void Should_return_empty_list_if_no_rooms_found() { var cmd = new GetChatRooms(); Assert.That(DomainRegistry.Repository.Find(cmd), Is.Empty); }