public AD7RegGroupProperty(AD7Engine engine, enum_DEBUGPROP_INFO_FLAGS dwFields, RegisterGroup grp, Tuple <int, string>[] values) { _engine = engine; _group = grp; _values = values; PropertyInfo = CreateInfo(dwFields); }
public static void AssertWeeklyCalendarHasDayExcluded(RegisterGroup group, DayOfWeek includedDay) { var weeklyCalendar = FindCalendarOfType <WeeklyCalendar>(group); Assert.IsTrue(weeklyCalendar.IsDayExcluded(includedDay), "day of week of {0} was expected to be excluded in the calendar but wasn't.", includedDay); }
public PointFeature(RegisterGroup previous, RegisterGroup next, bool isEOS) { Feature = new PointAttributeGroup() { Previous = previous, Next = next }; IsEOS = isEOS; }
public RegisterViewModel(string dpyno, string process, bool result) { Header = new Header(dpyno); RegisterGroup = new RegisterGroup(dpyno, process); if (result) { RegistResultMessage = Resources.TextResource.RegistSuccess; } else { RegistResultMessage = Resources.TextResource.RegistFailure; } }
public static void AssertDailyCalendarIsTimeExcluded(RegisterGroup group, int hour, int minute, int sec) { DateTimeOffset date = DateTimeOffset.Now; date = new DateTimeOffset(date.Year, date.Month, date.Day, hour, minute, sec, date.Offset); date = date.ToUniversalTime(); var dailyCal = FindCalendarOfType <LocalDailyCalendar>(group); Assert.IsFalse(dailyCal.IsTimeIncluded(date), "{0} as expected to be excluded in the daily calendar but wasn't", date); }
public IHttpActionResult CreateGroup([FromBody] RegisterGroup newGroup) { Group group = new Group(); group.Owner_Id = RequestContext.Principal.Identity.GetUserId(); group.Name = newGroup.Name; group.Description = newGroup.Description; IEnumerable <Station> stations = _stationsRepo.GetMultipleStations(newGroup.StationIds); group.Stations = new Collection <Station>(stations.ToList()); group = _repo.CreateGroup(group); return(Ok(group)); }
private static T FindCalendarOfType <T>(RegisterGroup group) where T : ICalendar { bool found = false; ICalendar cal = group.Calendar; while (cal != null) { if (cal is T) { found = true; break; } cal = cal.CalendarBase; } if (!found) { Assert.Fail("could not find a calendar or base calendar of type {0}", typeof(T)); } return((T)cal); }
public LeftShiftOperationUnit(RegisterGroup register) : base(register) { }
public BitwiseXorOperationUnit(RegisterGroup register) : base(register) { }
public RegisterViewModel(string dpyno, string process) { Header = new Header(dpyno); RegisterGroup = new RegisterGroup(dpyno, process); }
public SetEqualOperationUnit(RegisterGroup register) : base(register) { }
public SetLessThanOperationUnit(RegisterGroup register) : base(register) { }
public BranchZeroOperationUnit(RegisterGroup register) : base(register) { }
public AdvancedJumpOperationUnit(RegisterGroup register) : base(register) { }
public PointAttributeGroup(string prev, string next) { Previous = GetAttribute(prev); Next = GetAttribute(next); }