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); }
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); }