static void Main(string[] args) { // TeacherService student = new TeacherService(); BusinessLogicService service = new BusinessLogicService(new TeacherService()); Console.ReadKey(); }
static void Main(string[] args) { BusinessLogicService businessLogicService = new BusinessLogicService(new TeacherService()); businessLogicService.AllUse(); Console.ReadLine(); }
public void ReturnSuccessfulMessage() { var businessLogicService = new BusinessLogicService(); var result = businessLogicService.MakeUpValue(); result.ShouldContain("this value is here in order to fail this test like a student who never enrolled"); }
public void ReturnSuccessfulMessage() { var businessLogicService = new BusinessLogicService(); var result = businessLogicService.MakeUpValue(); result.ShouldContain("successful"); }
public JsonResult Get() { HttpContext.Response.Headers.Add("Access-Control-Allow-Origin", "*"); var returnString = string.Empty; BusinessLogicService bls = new BusinessLogicService(); returnString = bls.MakeUpValue(); return(new JsonResult(returnString)); }
public void All_ReturnsItems_FromCache() { //Arrange CacheRepository <T> myCacheRepository = new CacheRepository <T>(new List <T>()); BusinessLogicService <T> myBusinessLogicService = new BusinessLogicService <T>(myCacheRepository); var storeable = new Storeable { Description = "i1", Id = 1, StoreId = 1 }; myBusinessLogicService.Save((T)Convert.ChangeType(storeable, typeof(T))); var resultItems = myBusinessLogicService.All(); Assert.IsNotNull(resultItems); //Assert.AreEqual(1, resultItems.Count()); }
public Area1ViewModel(BusinessLogicService businessLogicService) { CalculatedValue = businessLogicService.CalculateValue(); }
public Area2View(BusinessLogicService businessLogicService) { InitializeComponent(); CalculatedValue = businessLogicService.CalculateValue(); }