Esempio n. 1
0
        public void should_incubate_eggs()
        {
            _nursery.IncubateEggs("Warrior", 5);

            _mediator
            .Received(1)
            .Send(Arg.Is <IncubationRequest>(it => it.Type == "Warrior" && it.Quantity == 5));
        }
Esempio n. 2
0
        public string LayEggs(int quantity, string type)
        {
            _nursery.IncubateEggs(type, quantity);

            return($"Layed {quantity} {type} ant eggs");
        }