public void GetActivitiesByPostalCodeReturnsCorrectViewModel()
        {
            var mediator = new Mock<IMediator>();
            mediator.Setup(x => x.Send(It.IsAny<AcitivitiesByPostalCodeQuery>())).Returns(new List<Activity>());

            var sut = new ActivityApiController(mediator.Object);
            var result = sut.GetActivitiesByPostalCode(It.IsAny<string>(), It.IsAny<int>());

            Assert.IsType<List<ActivityViewModel>>(result);
        }
        public void GetActivitiesByPostalCodeSendsAcitivitiesByPostalCodeQueryWithCorrectPostalCodeAndDistance()
        {
            const string zip = "zip";
            const int miles = 100;

            var mediator = new Mock<IMediator>();
            mediator.Setup(x => x.Send(It.IsAny<AcitivitiesByPostalCodeQuery>())).Returns(new List<Activity>());

            var sut = new ActivityApiController(mediator.Object);
            sut.GetActivitiesByPostalCode(zip, miles);

            mediator.Verify(x => x.Send(It.Is<AcitivitiesByPostalCodeQuery>(y => y.PostalCode == zip && y.Distance == miles)));
        }