Esempio n. 1
0
        public void TestGetCenterByIdShouldWorkCorrectly()
        {
            CenterInputModel centerModel = this.GetInputModel();

            ICenterService centerService   = new CenterService(this.dbContext);
            Center         currentlyAdded  = centerService.CreateCenter(centerModel);
            Center         result          = centerService.GetCenterById(currentlyAdded.Id);
            Center         incorrectResult = centerService.GetCenterById(currentlyAdded.Id + "5");

            Assert.NotNull(result);
            Assert.Null(incorrectResult);
        }