Exemplo n.º 1
0
        public void CreateBikeColor_Calls_CreateColor_In_Service()
        {
            mockMapper.Setup(m => m.Map <BikeColorDto>(It.IsAny <CreateBikeColorRequest>())).Returns(new BikeColorDto());
            mockService.Setup(r => r.CreateColor(It.IsAny <BikeColorDto>())).Returns(new BikeColorDto());
            colorController.CreateBikeColor(new CreateBikeColorRequest());

            mockService.Verify(s => s.CreateColor(It.IsAny <BikeColorDto>()), Times.Once);
        }