Example #1
0
 public void Setup()
 {
     dummy  = new SomeDummy();
     other1 = new OtherDummy {
         StringProperty = "A"
     };
     other2 = new OtherDummy {
         StringProperty = "B"
     };
     other3 = new OtherDummy {
         StringProperty = "A"
     };
     dummyOther1 = new SomeOther {
         Some = dummy, Other = other1
     };
     dummyOther2 = new SomeOther {
         Some = dummy, Other = other2
     };
     dummyOther3 = new SomeOther {
         Some = dummy, Other = other3
     };
     dummy.ManyNavigation.Add(dummyOther1);
     dummy.ManyNavigation.Add(dummyOther2);
     dummy.ManyNavigation.Add(dummyOther3);
     other1.ManyNavigation.Add(dummyOther1);
     other2.ManyNavigation.Add(dummyOther2);
     other3.ManyNavigation.Add(dummyOther3);
 }
        public static async Task SameSlnShare()
        {
            //string tst = await TypeProvidersTst.GetCoinsTask(TypeProvidersTst.coinmarketcap);

            var    p                  = new Person("Marcin", "Gajda", 25);
            Person ma                 = Marcin;
            Person mi                 = Michal;
            var    someOther          = new SomeOther(1, "");
            Tuple <int, string> randT = someOther.RandomTuple;
            int randM                 = someOther.RandomMethod(1);

            //var a = TypeProvidersTests.Todos
        }
Example #3
0
 public Some(string name, SomeOther other)
 {
     _name = name;
     Other = other;
 }