Beispiel #1
0
        public void TestGetCenterByNameShouldWorkCorrectlyWithBothData()
        {
            CenterInputModel centerModel = this.GetInputModel();

            ICenterService centerService      = new CenterService(this.dbContext);
            Center         currentlyAdded     = centerService.CreateCenter(centerModel);
            Center         result             = centerService.GetCenterByName("SecondCenter");
            Center         resultShouldBeNull = centerService.GetCenterByName("SecondCenter1");

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