public void should_get_all_incubating_eggs()
        {
            _getter.Get();

            _repository.Received(1).Get();
        }
Exemple #2
0
        public void should_generate_eggs()
        {
            _eggGenerator.Generate(new EggsDTO("Warrior", 5));

            _repository.Received(1).Create(Arg.Is <Eggs>(a => a.Quantity == 5 && a.Type == "Warrior"));
        }