public void TestInit()
        {
            Context.DeleteAllDbSetData();

            var newEvent = new Event
            {
                Title               = "Sample Event",
                Description         = "Sample Event Description",
                StartDateTime       = DateTime.Now,
                EndDateTime         = DateTime.Now.AddHours(1),
                RegistrationType    = new RegistrationType(),
                Registrations       = new List <Registration>(),
                EventType           = new EventType(),
                Status              = new Status(),
                LocationInformation = "At some new location",
                LogoPath            = "http://google/someimage"
            };

            _sampleRegistration = new Registration()
            {
                Event            = newEvent,
                EventType        = new EventType(),
                RegisterDateTime = DateTime.Now,
                Title            = "Sample Registration"
            };
        }
Пример #2
0
 public void TestInit()
 {
     Context.DeleteAllDbSetData();
     _sampleStatus = new Status()
     {
         Title = "Sample Title"
     };
 }
        public void TestInit()
        {
            Context.DeleteAllDbSetData();

            _sampleRegistrationType = new RegistrationType()
            {
                Title = "Sample Category"
            };
        }
Пример #4
0
        public void TestInit()
        {
            Context.DeleteAllDbSetData();

            _sampleEventType = new EventType()
            {
                Title = "Sample EventType"
            };
        }
 public void TestInit()
 {
     Context.DeleteAllDbSetData();
 }