public void Test()
        {
            var gpsMock = new GpsMock();

            gpsMock.SetSteps(5000);

            var service = new PhoneService(new ConnectionMock(), gpsMock, null);

            StepStatus met = service.NumberOfStepsMet();

            Assert.AreEqual(met, StepStatus.Met);
        }
Ejemplo n.º 2
0
        public void Test()
        {
            var gpsMock = new GpsMock();

            gpsMock.SetSteps(5000);

            var service = new PhoneServiceBuilder()
                          .WithConnection(new ConnectionMock())
                          .WithGps(gpsMock)
                          .Build();

            StepStatus met = service.NumberOfStepsMet();

            Assert.AreEqual(StepStatus.Met, met);
        }