Ejemplo n.º 1
0
        public void TestGetAllCenters()
        {
            CenterInputModel centerModel    = this.GetInputModel();
            CenterInputModel centerTwoModel = this.GetInputModel();

            centerTwoModel.Name = "New";

            ICenterService centerService = new CenterService(this.dbContext);

            centerService.CreateCenter(centerModel);
            centerService.CreateCenter(centerTwoModel);
            var result = centerService.GetAllCenters().Count();

            Assert.True(result != 0, "Centers count is incorrect!");
        }