Example #1
0
        public void Should_fetch_all_available_npcs()
        {
            new NPCBuilder().With(cr => cr.Id, 5)
            .With(cr => cr.SpawnText, "spawn text uno")
            .BuildAndSave();

            new NPCBuilder().With(cr => cr.Id, 6)
            .With(cr => cr.SpawnText, "spawn text dos")
            .BuildAndSave();

            var cmd = new GetNPCs();

            Assert.That(DomainRegistry.Repository.Find(cmd), Has.Exactly(2).Items);
        }
Example #2
0
        public void Should_return_empty_list_if_no_npcs_found()
        {
            var cmd = new GetNPCs();

            Assert.That(DomainRegistry.Repository.Find(cmd), Is.Empty);
        }