public void Initialize() { _helloWorldRepo = A.Fake <IHelloWorldRepo>(); _helloWorldService = new HelloWorldService(_helloWorldRepo); A.CallTo(() => _helloWorldRepo.GetHelloWorldEntity()).Returns("Hello World"); }
public void GetHelloWorldEntityTest() { var result = _helloWorldRepo.GetHelloWorldEntity(); Assert.AreEqual("Hello World", result); }
public string GetStartMessage(bool isCodingExercise) { return(isCodingExercise ? _helloWorldRepo.GetHelloWorldEntity() : "Foo"); }