コード例 #1
0
        public async Task Create_Cat_Successful()
        {
            var cat = new Cat(Guid.NewGuid().ToString(), Ability.Napping);

            await CatService.Create(cat);

            MessageBrokerMock.Verify(MessageCommand.Create);
        }
コード例 #2
0
        public async Task Delete_Cat_Successful()
        {
            var cat = TestData.Cats.FirstOrDefault();

            cat.Name = Guid.NewGuid().ToString();

            await CatService.Delete(cat.Id);

            MessageBrokerMock.Verify(MessageCommand.Delete);
        }