Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            // TeacherService student = new TeacherService();
            BusinessLogicService service = new BusinessLogicService(new TeacherService());

            Console.ReadKey();
        }
Ejemplo n.º 2
0
        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");
        }
Ejemplo n.º 4
0
        public void ReturnSuccessfulMessage()
        {
            var businessLogicService = new BusinessLogicService();

            var result = businessLogicService.MakeUpValue();

            result.ShouldContain("successful");
        }
Ejemplo n.º 5
0
        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));
        }
Ejemplo n.º 6
0
        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());
        }
Ejemplo n.º 7
0
 public Area1ViewModel(BusinessLogicService businessLogicService)
 {
     CalculatedValue = businessLogicService.CalculateValue();
 }
Ejemplo n.º 8
0
 public Area2View(BusinessLogicService businessLogicService)
 {
     InitializeComponent();
     CalculatedValue = businessLogicService.CalculateValue();
 }